<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Spitter</title>
    <link rel="stylesheet" type="text/css" th:href="@{/resources/style.css}"/>
</head>
<body onload="document.f.username.focus();">
    <div id="header" th:include="page::header"></div>
    <div id="content">
        <form name="f" th:action="@{/login}" method="post">
            <table>
                <tr>
                    <td>User:</td>
                    <td>
                        <input type="text" name="username" value="" />
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <input type="password" name="password" />
                    </td>
                </tr>
                <!-- 登录表单的 Remember me 功能 -->
                <input id="remember_me" name="remember-me" type="checkbox" />
                <label for="remember_me" class="inline">Remember me</label>
                <tr>
                    <td colspan="2">
                        <input name="submit" type="submit" value="login" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="footer" th:include="page::copy"></div>
</body>
</html>
<!-- 因为这是一个 Thymeleaf 模板，因此隐藏的 “_csrf” 域将会自动添加到表单中 -->